package com.dayuanit.dy17.mix.single;

/**
 * 内部类的方式创建单例对象。推荐 *****
 */
public class Bird {

    private Bird() {

    }

    public static Bird getBird() {
        return InnerBird.birdInstance;
    }

    private static class InnerBird {
        public static final Bird birdInstance = new Bird();
    }
}
